package org.sems.sems.Controller;

import org.sems.sems.service.AiHistoryService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.Map;

@RestController
@RequestMapping("/aidhjlk")
public class AidhjlkController {
    @Autowired
    private AiHistoryService aiHistoryService;

    @PostMapping("/clear")
    public Map<String, Object> clear(String twz, int twzsfdm) {
        return aiHistoryService.clearHistory(twz, twzsfdm);
    }
}
